<template>
  <div class="delete-item-modal modal" v-if="visible">
    <div class="delete-item">
      <div class="header">提示</div>
      <div class="body">
        <p>
          确认删除
          <span style="color: #009cff"> {{ name }} </span>
          吗？
        </p>
      </div>
      <div class="footer">
        <div class="btn-group">
          <div class="cancel-btn btn" @click="cancel()">取消</div>
          <div class="confirm-btn btn" @click="confirm()">确认</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: "",
      visible: false,
    };
  },
  methods: {
    cancel() {},
    confirm() {},
  },
};
</script>

<style lang='less' scoped>
.delete-item {
  width: 600px;
  height: 178px;
  border-radius: 6px;
  background-color: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  .header {
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
  }
  .body {
    padding: 25px 40px;
    letter-spacing: 1px;
  }
  .footer {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    .btn-group {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .btn {
        width: 80px;
        height: 35px;
        line-height: 35px;
        border-radius: 4px;
      }
      .cancel-btn {
        background-color: #ffffff;
        color: #b3b3b3;
        border: solid 2px #f5f5f5;
        margin-right: 20px;
      }
      .confirm-btn {
        background-color: #009cff;
        color: #fff;
      }
    }
  }
}
</style>
